package word2;

public class Func3 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {
                System.out.println("继承Thread,使用匿名内部类");
            }
        };
        t.start();
    }
}
